package com.tij.rtti.typeinfo.pet;

import java.util.ArrayList;

/**
 * @ClassName:ch 14-3-1 p328
 * @author:
 * @Description: TODO
 * data:2024/10/7 7:04
 * @since
 **/
public class Pets {
    public static final PetCreator creator =
            new LiteralPetCreator();

    public static Pet randomPet(){
        return creator.randomPet();
    }

    public static Pet[] createArray(int size){
        return creator.createArray(size);
    }

    public static ArrayList<Pet> arrayList(int size){
        return creator.arrayList(size);
    }
}
